package com.maxmind.domain;

import java.util.Map;

import com.maxmind.db.MaxMindDbConstructor;
import com.maxmind.db.MaxMindDbParameter;

import lombok.Data;

/**
 * 类CountryInfo的实现描述：国家信息
 *
 * @author sunyj 2025/3/21 13:59
 */
@Data
public class CountryInfo {

    private final String isoCode;

    private final Long geonameId;

    private Map<String, String> names;

    @MaxMindDbConstructor
    public CountryInfo (
            @MaxMindDbParameter(name="iso_code") String isoCode,
            @MaxMindDbParameter(name="geoname_id") Long geonameId,
            @MaxMindDbParameter(name="names") Map<String, String> names) {
        this.isoCode = isoCode;
        this.geonameId = geonameId;
        this.names = names;
    }
}
